import {Injectable} from '@angular/core';
import {LoggerService} from './logger.service';
import {logger} from 'codelyzer/util/logger';

@Injectable()
export class ProductService {

  constructor(public loggerService: LoggerService) {
  }

  getProduct() {
    this.loggerService.log('hi');
    return new Product(1, '电脑');
  }
}

export class Product {
  constructor(public id: number, public name: string) {
  }
}
